From: Jonas Dreßler Date: Sat, 24 Oct 2020 12:03:45 +0000 (+0200) Subject: st/viewport: Invalidate the cached paint volume of ClutterActor X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~63 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=fab39bbea5d9a7a0330a1be548f8ee26cd7e3131;p=gnome-shell.git st/viewport: Invalidate the cached paint volume of ClutterActor Since StViewport uses the value of the StAdjustment to create its custom paint volume, ClutterActors newly introduced proper caching of paint volumes doesn't get notifed about changes to that paint volume and will simply reuse the cached old one. So make use of the newly introduced clutter_actor_invalidate_paint_volume() method to make sure ClutterActor will ask for the paint volume again on the next paint. Part-of: --- diff --git a/src/st/st-viewport.c b/src/st/st-viewport.c index e2593196e..96b703b14 100644 --- a/src/st/st-viewport.c +++ b/src/st/st-viewport.c @@ -81,6 +81,7 @@ adjustment_value_notify_cb (StAdjustment *adjustment, StViewport *viewport) { clutter_actor_invalidate_transform (CLUTTER_ACTOR (viewport)); + clutter_actor_invalidate_paint_volume (CLUTTER_ACTOR (viewport)); clutter_actor_queue_relayout (CLUTTER_ACTOR (viewport)); }